﻿<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<title>{$post_title}—{$site_name} </title>
		<meta name="keywords" content="{$post_keywords}" />
		<meta name="description" content="{$post_excerpt}">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<tc_include file="Public:head" />

	</head>

	<body>
	<tc_include file="Public:nav" />
		<tc_include file="Public:banner" />
		<br />
		<div class="container pajax">
			<div class="">
				<ul class="bread">
					<h4>
						{:get_bread_nav('Portal/List/index',$term_id)}
						<li><a>文章正文</a></li>
					</h4>
				</ul>
			</div>
			<div class="line-big">
				<div class="xl12 xm8">
					<div class="title">
						{$post_title}

					</div>
					<div class="info">
						时间：{$post_date} &nbsp;作者：{$user_nicename} &nbsp; 阅读：{$post_hits}&nbsp;
						<php>
							$uid=get_current_userid(); $cg=cg_article($object_id,$uid);
						</php>

						<if condition="empty($cg)">
							<a href="{:U('user/favorite/do_favorite_zhl',array('id'=>$object_id,'uid'=>$_GET['id']))}"><img src="__TMPL__Public/images/cg_0.png" title="未收藏" style="padding: 0 0 2px 2px;" /></a>
							<else />
							<a href="{:U('user/favorite/delete_favorite',array('id'=>$cg['id']))}"><img src="__TMPL__Public/images/cg_1.png" title="已收藏" style="padding: 0 0 2px 2px;" /></a>
						</if>

					</div>
					<hr />
					<div class="content">
						{$post_content}
					</div>
					{:sp_getad('百度分享')}
					<div style="margin: 21px 0;">
						<if condition="!empty($prev)">
							<span>上一篇:</span>
							<a href="{:leuu('article/index',array('id'=>$prev['tid'],'nid'=>$_GET[" nid "]))}" class="">
							<php>
						         $posts=sp_sql_post($prev['tid']);
								 echo $posts['post_title'];
						    </php>
							</a>

						</if>
						<if condition="!empty($next)">
							
							<a href="{:leuu('article/index',array('id'=>$next['tid'],'nid'=>$_GET[" nid "]))}" class="float-right">
								<php>
							         $posts=sp_sql_post($next['tid']);
									 echo $posts['post_title'];
							    </php>
							</a>
							<span class="float-right">下一篇:</span>
						</if>
					</div>
					<br /> {:Comments("posts",$object_id)}

					<br />
					<br />

				</div>
				<tc_include file="Public:slide" />
			</div>
		</div>
		<tc_include file="Public:footer" />

	</body>

</html>